'''
Created on Jan 18, 2011

@author: Administrator
'''

import os
import sys
from sniffylib import util
from sniffylib.rpc import core
import unittest

def str2cmd(user, cmdln):
    cmd, params = core.parse_cmdln(cmdln)
    return core.SniffyCmd(user, cmd, params)

def stub_symbian():
    if not util.on_symbian():
        sys.path.insert(0, os.path.abspath('dumb'))

class BaseTest(unittest.TestCase):
    
    def assertNotCalled(self, mock):
        self.assertFalse(mock.called)
